//
//  SQSelectAddressViewController.h
//  SQSelectAddress
//
//  Created by rattanchen on 18/7/9.
//  Copyright © 2018年 rattanchen. All rights reserved.
//

#import <UIKit/UIKit.h>

@class SQProvince, SQCity, SQCounty, SQTown, SQSelectAddressViewController;
@protocol SQSelectAddressViewControllerDelegate <NSObject>

@optional

/**
 选择的详细地址和该地址地理编码Code

 @param selectController SQSelectAddressViewController
 @param address 详细地址
 @param townCode 地址编码
 */
- (void)selectAddressViewController:(SQSelectAddressViewController *)selectController selectedDetailAdreess:(NSString *)address townCode:(NSString *)townCode;

/**
 选择的地址所在的省份

 @param province 省份模型
 */
- (void)selectAddressViewControllerSelectedProvince:(SQProvince *)province;

/**
 选择的地址所在的市或直辖市

 @param city 市或市级县模型
 */
- (void)selectAddressViewControllerSelectedCity:(SQCity *)city;

/**
 选择的地址所在的县或区

 @param county 县或区模型
 */
- (void)selectAddressViewControllerSelectedCounty:(SQCounty *)county;

/**
 选择的地址所在的乡、镇

 @param town 乡、镇模型
 */
- (void)selectAddressViewControllerSelectedTown:(SQTown *)town;

@end

@interface SQSelectAddressViewController : UIViewController

@property (nonatomic, weak) id <SQSelectAddressViewControllerDelegate> delegate;

/**
 显示或隐藏containerView动画
 */
@property (nonatomic, assign, getter=isAnimating) BOOL animating;

#pragma mark - 表头/标题属性设置
/** 头部背景色 */
@property(nonatomic,strong)UIColor *headerBg_color;
/**标题字体颜色，默认黑色*/
@property(nonatomic,strong)UIColor *titleText_color;
/**标题字体大小，默认17号*/
@property(nonatomic,strong)UIFont *title_font;
/** 滚逼选择器图标 默认尺寸： 2x :32x32  3x:48x48*/
@property(nonatomic,strong)UIImage *closeAddress_image;

#pragma mark - 表尾/按钮属性设置
/** 尾部背景色 */
@property(nonatomic,strong)UIColor *footerBg_color;
/**下一步按钮背景色，默认红色*/
@property(nonatomic,strong)UIColor *nextBtnBg_color;
/**下一步按钮字体颜色，默认白色*/
@property(nonatomic,strong)UIColor *nextBtnText_color;
/**下一步按钮字体大小，默认14*/
@property(nonatomic,strong)UIFont *nextBtn_font;

/**上一步按钮背景色，默认无色*/
@property(nonatomic,strong)UIColor *backBtnBg_color;
/**上一步按钮字体颜色，默认黑色*/
@property(nonatomic,strong)UIColor *backBtnText_color;
/**上一步按钮字体大小，默认14*/
@property(nonatomic,strong)UIFont *backBtn_font;
/**上一步按钮边框颜色，默认黑色*/
@property(nonatomic,strong)UIColor *backBtnBorder_color;

#pragma mark - 主题图标色值
/** 选中图标 默认尺寸：2x:36x36 3x:54x54 */
@property(nonatomic,strong)UIImage *boxSelected_img;
/** 默认图标 默认尺寸：2x:36x36 3x:54x54 */
@property(nonatomic,strong)UIImage *boxDefault_img;

#pragma mark - Method
/** 主题色,红色 */
-(void)setThemeColor;


@end
